
#include "stdafx.h"
#include "WicMetadataWriterInfo.h"

CWicMetadataWriterInfo::CWicMetadataWriterInfo()
{
    m_pIWICMetadataWriterInfo = NULL;
}

CWicMetadataWriterInfo::~CWicMetadataWriterInfo()
{
    if(m_pIWICMetadataWriterInfo)
    {
        m_pIWICMetadataWriterInfo->Release();
    }
    m_pIWICMetadataWriterInfo = NULL;
}

CWicMetadataWriterInfo::CWicMetadataWriterInfo(CWicMetadataWriterInfo const & objMetadataWriterInfo)
{
    m_pIWICMetadataWriterInfo = objMetadataWriterInfo.m_pIWICMetadataWriterInfo;
    m_pIWICMetadataWriterInfo->AddRef();
}

CWicMetadataWriterInfo& CWicMetadataWriterInfo::operator=(CWicMetadataWriterInfo const & objMetadataWriterInfo)
{
    if(m_pIWICMetadataWriterInfo)
    {
        m_pIWICMetadataWriterInfo->Release();
    }
    m_pIWICMetadataWriterInfo = objMetadataWriterInfo.m_pIWICMetadataWriterInfo;
    m_pIWICMetadataWriterInfo->AddRef();
    return *this;
}
